<template>
	<div class="border-1px border-#E5E6EB border-solid rounded-12px p-20px">
		<el-tabs v-model="activeName" class="person-commission-tabs" @tab-click="handleClick">
			<el-tab-pane label="当前委托" name="first">
				<template #default>
					<div class="mt-10px">
						<CurrentTable/>
					</div>
				</template>
			</el-tab-pane>
			<el-tab-pane label="持有仓位" name="second">
				<template #default>
					<div class="mt-10px">
						<HoldPositions/>
					</div>
				</template>
			</el-tab-pane>
		</el-tabs>
	</div>
</template>
<script lang="ts" setup>
import CurrentTable from './CurrentTable.vue';
import HoldPositions from './HoldPositions.vue';

const activeName = ref('first');

const handleClick = (tab:any, event:any) => {
	console.log(tab, event);
};
</script>
<style lang="scss" scoped>

</style>
<style lang="scss">
.person-commission-tabs{
	.el-tabs__nav-wrap:after{
		display: none;
	}
	.el-tabs__header{
		margin: 0;
	}
	.el-tabs__item{
		font-size: 16px;
		color:#86909C;
	}
	.is-active{
		color:#000000;
	}
}
	
</style>
